<?php

namespace AuctionAppApi\Controller;

use Think\Controller;
use AuctionCore\System\AuctionException;

/**
 * 接口开发Demo
 */
class DemoController extends BaseController {

    const DEALER_ID = '56';
    const UUID = '359712060607931';
    const UID = '10087';

    public function index() {

        if ($_REQUEST['clcw_exception']) {
            //接口异常抛出方法
            AuctionException::make_throw('900000');
        }

        if ($_REQUEST['exception']) {
            //其它异常抛出方法
            throw new \Exception('这是个测试，这是用系统抛出的方法');
        }

        if ($_REQUEST['api_200']) {
            //内容正常输出
            $data = array('a' => 'aaaa', 'b' => 'bbbb');
            $this->api_200($data);
        }


        $this->display();
    }

    public function test() {
        if(!preg_match('/192\.168\..*/', $_SERVER['SERVER_ADDR'])){
            die('禁止访问');
        }

        $now = time();
        $rand = rand(100,999);
        $now .=$rand;
        $redis = new \AuctionCore\Common\PhpRedis(2);
        $token = md5($redis->get( 'logined_359712060607147_10004'));
        echo sha1('liuguogangbje10adc3949ba59abbe56e057f20f883e1471867006911clcw.com.cn');

        $access_key = sha1('dealer2'.md5('111111').$now.'clcw.com.cn');


        //$redis = new \Redis();
        //$redis->connect('192.168.2.116', '6379', 1 );
        //$redis->select(2);
        //echo md5($redis->get( 'logined_866229027046802_10004'));exit;
        //$token = md5($redis->get( 'logined_866229027046802_737'));
        //dump(sha1('737'.'866229027046802'.md5($token).'1453174051'.'clcw.com.cn'));
        //dump(sha1('737'.'866229027046802'.md5('71b484d4e81939d7b1a14c34af3b1d34').'1453174051'.'clcw.com.cn'));
        //exit;



        ?>

        <meta charset='utf-8' xmlns="http://www.w3.org/1999/html">
        <h1>拍卖App接口测试</h1>
        <h2>目录</h2>
        <dl>
            <li>1. <a href="#1">获取服务器系统时间</a></li>
            <li>2. <a href="#2">登陆</a></li>
            <li>2. <a href="#2">退出</a></li>
            <li>3. <a href="#3">获取基本配置信息</a></li>
            <li>4. <a href="#4">轮播图</a></li>
            <li>5. <a href="#5">获取新消息条数</a></li>
            <li>6. <a href="#6">拍单列表</a></li>
            <li>7. <a href="#7">检测报告</a></li>
            <li>8. <a href="#8">检测报告 基本信息</a></li>
            <li>9. <a href="#9">检测报告 手续信息</a></li>
            <li>10. <a href="#10">检测报告 配置信息</a></li>
            <li>11. <a href="#11">检测报告 工况及附件说明</a></li>
            <li>12. <a href="#12">检测报告 基本相片</a></li>
            <li>13. <a href="#13">检测报告 可见损伤图片</a></li>
            <li>14. <a href="#14">出价</a></li>
            <li>15. <a href="#15">出价列表</a></li>
            <li>16. <a href="#16">关注</a></li>
            <li>17. <a href="#17">车价列表</a></li>
            <li>18. <a href="#18">我的页面信息</a></li>
            <li>19. <a href="#19">资产中心信息</a></li>
            <li>20. <a href="#20">保证金使用记录</a></li>
            <li>21. <a href="#21">代金券列表</a></li>
            <li>22. <a href="#22">交易中心信息</a></li>
            <li>23. <a href="#23">买到的拍单列表</a></li>
            <li>24. <a href="#24">交易拍单</a></li>
            <li>25. <a href="#25">我出价的拍单列表</a></li>
            <li>26. <a href="#26">使用代金券</a></li>
            <li>27. <a href="#27">车商基本信息</a></li>
            <li>28. <a href="#28">修改基本信息</a></li>
            <li>29. <a href="#29">修改密码</a></li>
            <li>30. <a href="#30">提车人列表</a></li>
            <li>31. <a href="#31">新增、修改提车人</a></li>
            <li>32. <a href="#32">删除提车人</a></li>
            <li>33. <a href="#33">投诉建议列表</a></li>
            <li>34. <a href="#34">新增投诉建议</a></li>
            <li>35. <a href="#35">客户经理详情</a></li>
            <li>36. <a href="#36">消息中心列表</a></li>
            <li>37. <a href="#37">客户经理详情</a></li>
            <li>38. <a href="#38">投标</a></li>
            <li>39. <a href="#39">退出登录</a></li>
            <li>40. <a href="#40">根据筛选条件获取拍单个数</a></li>
            <li>41. <a href="#41">根据筛选条件获取车价列表个数</a></li>
            <li>42. <a href="#42">投标、待竞拍、竞拍、待确认（原生展示）</a></li>
            <li>43. <a href="#43">成交待回车列表</a></li>
            <li>44. <a href="#44">待验车列表</a></li>
            <li>45. <a href="#45">仲裁列表（待仲裁，已仲裁）</a></li>
            <li>46. <a href="#46">成交待回车详情</a></li>
            <li>47. <a href="#47">待验车详情</a></li>
            <li>48. <a href="#48">仲裁详情</a></li>
            <li>49. <a href="#49">保证金使用记录V100</a></li>
            <li>50. <a href="#50">车辆报告（完整，统接口）</a></li>
            <li>51. <a href="#51">车商抽奖</a></li>
            <li>52. <a href="#52">获取碎片</a></li>
            <li>53. <a href="#53">资产中心v130</a></li>
            <li>54. <a href="#54">贷款历史v130</a></li>
            <li>55. <a href="#55">贷款历史详情页v130</a></li>
            <li>56. <a href="#56">支付方式</a></li>
            <li>57. <a href="#57">贷款支付</a></li>
            <li>58. <a href="#58">完成结算</a></li>
            <li>59. <a href="#59">车辆结算v130</a></li>
            <li>60. <a href="#60">首付款确认</a></li>
            <li>61. <a href="#61">申请支付</a></li>
            <li>62. <a href="#62">贷款取消</a></li>
            <li>63. <a href="#63">收款确认</a></li>
            <li>64. <a href="#64">订阅参数测试</a></li>
            <li>65. <a href="#65">订阅删除测试</a></li>
            <li>66. <a href="#66">订阅添加测试</a></li>


            <li>88. <a href="#88">车辆检测报告分享</a></li>
            <li>90. <a href="#90">车商认证签约</a></li>
            <li>91. <a href="#91">争议详情信息</a></li>
            <li>92. <a href="#92">异常详情信息</a></li>
        </dl>
        <section >
            <h3 id="1">1、<a href="#">获取服务器系统时间[Xmh]</a></h3>
            <form action="/System/get_system_time" method="post" target="_blank">
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section>
            <hr>
            <h3 id="2"><b>2,<a href="#">登录接口</a></b>
                <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Auth/login" method="post" target="_blank"  >
                    username:<input name="username" value="dealer2" />               <br>
                    key:    <input name="key" type="text" value="<?=sha1('dealer2'.md5('111111').$now.'clcw.com.cn')?>" />  sha1(username + md5(password) + time + SALT)       <br>
                    time:    <input name="time" type="text" value="<?=$now?>" />        <br>
                    is_no_encrypt:    <input name="is_no_encrypt" type="text" value="" />   为1不加密返回结果，便于调试,否则为DES(key=substr(md5(password),0,8))加密的数据     <br>
                    uuid:    <input name="uuid" type="text" value="359712060607147" />        <br>
                    jpush_id:    <input name="jpush_id" type="text" value="jpushidaabbccddeeffgg" />        <br>
                    version:    <input name="version" type="text" value="359712060607147" />        <br>
                    <input type="submit" value="submit" />
                </form>
        </section>
        <section>
            <hr>
            <h3 id="2"><b>2,<a href="#">登录接口V2</a></b>
                <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Auth/login_v2" method="post" target="_blank"  >
                    username:<input name="username" value="dealer2" /><br>
                    key:    <input name="key" type="text" value="" /><br>
                    is_no_encrypt:    <input name="is_no_encrypt" type="text" value="" />   为1不加密返回结果，便于调试,否则为DES(key=substr(md5(password),0,8))加密的数据     <br>
                    jpush_id:    <input name="jpush_id" type="text" value="160a3797c808a4a184b" />        <br>
                    <input type="submit" value="submit" />
                </form>
        </section>
        <section>
            <h3 id="5">2. <a href="#">注销</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Auth/logout" method="post" target="_blank">
                用户ID:<input name="uid" type="text" value="<?=self::UID?>"><br/>

                UUID:<input name="uuid" type="text" value="359712060607147"><br/>
                time:<input name="time" type="text" value="<?=$now?>"><br/>
                access_key:<input name="access_key" type="text" value="<?=$access_key?>"> sha1(uid+uuid+md5(token)+time+clcw.com.cn) ,token取自登录接口<br/>

                <br><input type="submit" name="submit" value="submit">
            </form>
        </section>
        <section >
            <h3 id="3">3、<a href="#">获取基本配置信息[Xmh]</a></h3>
            <form action="/System/get_basic_config" method="post" target="_blank">

                用户ID:<input name="uid" type="text" value="<?=self::UID?>"><br/>

                UUID:<input name="uuid" type="text" value="359712060607147"><br/>
                time:<input name="time" type="text" value="<?=$now?>"><br/>
                access_key:<input name="access_key" type="text" value="<?=$access_key?>"> sha1(uid+uuid+md5(token)+time+clcw.com.cn) ,token取自登录接口<br/>
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>



        <section >
            <h3 id="4">4、<a href="#">轮播图[Xmh]</a></h3>
            <form action="/Carousel/index" method="post" target="_blank">
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section>
            <h3 id="5">5. <a href="#">获取新消息数目 [angl]</a></h3>
            <form action="/Inbox/get_new_num" method="post" target="_blank">
                用户ID:<input name="uid" type="text" value="<?=self::UID?>"><br/>

                UUID:<input name="uuid" type="text" value="359712060607147"><br/>
                time:<input name="time" type="text" value="<?=$now?>"><br/>
                access_key:<input name="access_key" type="text" value="<?=$access_key?>"> sha1(uid+uuid+md5(token)+time+clcw.com.cn) ,token取自登录接口<br/>

                <br><input type="submit" name="submit" value="submit">
            </form>
        </section>
        <section>
            <h3 id="6">6,<a href="#">拍单列表(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Auction/get_list_v130" method="post"  target="_blank" >
                <br>用户ID:<input name="uid" type="text" value="<?=self::UID?>"><br/>
                <br>UUID:<input name="uuid" type="text" value="359712060607147"><br/>
                <br>time:<input name="time" type="text" value="<?=$now?>"><br/>
                <br>access_key:<input name="access_key" type="text" value="<?=$access_key?>"> sha1(uid+uuid+md5(token)+time+clcw.com.cn) ,token取自登录接口<br/>

                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>列表类型:<input name="type" value="" />列表类型（1:关注、2:出过价的、3:特定场次、4:首页列表、5:关注及出价）
                <br>拍单开始时间:<input name="day" value="0" />拍单开始时间（0:全部、1:今日、2:明日）
                <br>当前页码:<input name="page" value="1" />
                <br>页面大小:<input name="page_size" value="20" />
                <br>场次ID:<input name="scene_id" value="" />
                <br>主品牌ID:<input name="mbrand_id" value="" />
                <br>车系ID:<input name="series_id" value="" />
                <br>排放标准:<br><?php
                foreach (C('INT_EMISSION_STD') as $k => $v) {
                    echo '<input type="checkbox" name="emission[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>推荐价格区间:<br><?php
                foreach (C('APP_PRICE_RANGE') as $k => $v) {
                    echo '<input type="checkbox" name="prices_interval[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>自定义最低价:<input name="custom_low_price" value="" />
                <br>自定义最高价:<input name="custom_high_price" value="" />
                <br>年限:<br><?php
                foreach (C('APP_AGE_RANGE') as $k => $v) {
                    echo '<input type="checkbox" name="year_interval[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>车况等级:<input type="checkbox" name="condition_level[]" value="-1" />全部<br><?php
                foreach (C('APP_CAR_LEVEL') as $key => $val) {
                    if ($key == '-1')
                        continue;
                    foreach (C('APP_COM_STATE') as $k => $v) {
                        if ($k == '-1')
                            continue;
                        echo '<input type="checkbox" name="condition_level[]" value="' . $k . $key . '" />' . $v . $val;
                    }
                    echo '<br>';

                }
                ?>（多选）
                <br>所在地:<input type="radio" name="branch_company" value="110000" checked="checked" />北京 <input type="radio" name="branch_company" value="330100" />杭州 <input type="radio" name="branch_company" value="530100" />重庆
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section >
            <h3 id="7">7、<a href="#">检测报告[Xmh]</a></h3>
            <form action="/Report/index" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section>
            <h3 id="8">8、<a href="#">检测报告 基本信息[Xmh]</a></h3>
            <form action="/Report/base_info" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3 id="9">9、<a href="#">检测报告 手续信息[Xmh]</a></h3>
            <form action="/Report/procedure" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3 id="10">10、<a href="#">检测报告 配置信息[Xmh]</a></h3>
            <form action="/Report/config" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section>
            <h3 id="11">11、<a href="#">检测报告 工况及附件说明[Xmh]</a></h3>
            <form action="/Report/perform" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3 id="12">12、<a href="#">检测报告 基本相片[Xmh]</a></h3>
            <form action="/Report/base_pics" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3><a href="#">修复历史外观[Xmh]</a></h3>
            <form action="/Report/appear_history" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section>
            <h3><a href="#">修复历史骨架[Xmh]</a></h3>
            <form action="/Report/frame_history" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3><a href="#">外观骨架损伤点样式[Xmh]</a></h3>
            <form action="/Report/get_pos_class" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3><a href="#">可见损伤部位[Xmh]</a></h3>
            <form action="/Report/get_dm_position" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3><a href="#">可见损伤点样式[Xmh]</a></h3>
            <form action="/Report/get_dm_point_class" method="post" target="_blank">
                车辆ID:
                <input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3  id="13">13、检测报告 可见损伤图片[Xmh]</h3>
            <form action="/Report/get_dm_position_pics" method="post" target="_blank">
                车辆ID:<input type="text" name="car_id" value="" /><br>
                损伤部位ID:<input type="text" name="dm_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3><a href="#">检测报告 可见损伤程度图片[Xmh]</a></h3>
            <form action="/Report/get_dm_degree_pics" method="post" target="_blank">
                车辆ID:<input type="text" name="car_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section >
            <h3 id="14">14,<a href="#">竞标出价(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Order/bidding_price" method="post" target="_blank"  >
                <br>用户ID:<input name="uid" type="text" value="<?= self::UID ?>"><br/>
                <br>UUID:<input name="uuid" type="text" value="359712060607147"><br/>
                <br>time:<input name="time" type="text" value="<?=$now?>"><br/>
                <br>access_key:<input name="access_key" type="text" value="<?=$access_key?>"> sha1(uid+uuid+md5(token)+time+clcw.com.cn) ,token取自登录接口<br/>

                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>拍单ID:<input name="order_id" value="" />
                <br>基价:<input name="base_price" value="" />
                <br>出价:<input name="add_price" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="15">15,<a href="#">竞标出价记录(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Order/get_bidding_price_log" method="post" target="_blank"  >
                <br>用户ID:<input name="uid" type="text" value="10004"><br/>
                <br>UUID:<input name="uuid" type="text" value="359712060607147"><br/>
                <br>time:<input name="time" type="text" value="<?=$now?>"><br/>
                <br>access_key:<input name="access_key" type="text" value="<?=$access_key?>"> sha1(uid+uuid+md5(token)+time+clcw.com.cn) ,token取自登录接口<br/>

                <br>车商ID:<input name="uid" value="<?= self::DEALER_ID ?>" />
                <br>拍单ID:<input name="order_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="16">16. <a href="#">关注 [angl]</a></h3>
            <form action="/Order/follow" method="post" target="_blank"  >
                <br>用户ID:<input name="uid" type="text" value="10004"><br/>
                <br>UUID:<input name="uuid" type="text" value="359712060607147"><br/>
                <br>time:<input name="time" type="text" value="<?=$now?>"><br/>
                <br>access_key:<input name="access_key" type="text" value="<?=$access_key?>"> sha1(uid+uuid+md5(token)+time+clcw.com.cn) ,token取自登录接口<br/>

                车商ID:<input name="dealer_id" value="130" />
                <br>拍单ID:<input name="order_id" value="721" />
                <br><input type="submit" name="submit" value="关注" />
            </form>
        </section>
        <section>
            <h3 id="17">17. <a href="#">车价列表 [angl]</a></h3>
            <form action="/Hisprice/get_list" method="post" target="_blank"  >
                车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>当前页码:<input name="page" value="1" />
                <br>页面大小:<input name="page_size" value="20" />
                <br>主品牌ID:<input name="mbrand_id" value="" />
                <br>车系ID:<input name="series_id" value="" />
                <br>排放标准:<br><?php
                foreach (C('INT_EMISSION_STD') as $k => $v) {
                    echo '<input type="checkbox" name="emission[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>推荐价格区间:<br><?php
                foreach (C('APP_PRICE_RANGE') as $k => $v) {
                    echo '<input type="checkbox" name="prices_interval[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>自定义最低价:<input name="custom_low_price" value="" />
                <br>自定义最高价:<input name="custom_high_price" value="" />
                <br>年限:<br><?php
                foreach (C('APP_AGE_RANGE') as $k => $v) {
                    echo '<input type="checkbox" name="year_interval[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>车况等级:
                <br><input type="checkbox" name="condition_level[]" value="-1" />全部
                <br><?php
                foreach (C('APP_CAR_LEVEL') as $key => $val) {
                    if ($key == '-1')
                        continue;
                    foreach (C('APP_COM_STATE') as $k => $v) {
                        if ($k == '-1')
                            continue;
                        echo '<input type="checkbox" name="condition_level[]" value="' . $k . $key . '" />' . $v . $val;
                    }
                    echo '<br>';
                }
                ?>（多选）
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section >
            <h3 id="18">18、<a href="#">我的页面信息[Xmh]</a></h3>
            <form action="/Dealer/index" method="post" target="_blank">
                车商ID:<input type="text" name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section>
            <h3 id="19">19. <a href="#">资产中心信息 [angl]</a></h3>
            <form action="/Asset/center" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="130">
                <br> <input type="submit" name="submit" value="submit">
            </form>
        </section>
        <section>
            <h3 id="20">20. <a href="#">保证金使用记录 [angl]</a></h3>
            <form action="/Asset/history_bail" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="130">
                <br>页码: <input type="text" name="page" value="1">
                <br>页面大小: <input type="text" name="page_size" value="20">
                <br> <input type="submit" name="submit" value="submit">
            </form>
        </section>
        <section>
            <h3 id="21">21,<a href="#">代金券列表(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Asset/coupon" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>使用情况:<input name="type" value="1" />(1：可使用，2：已使用，3：已过期)
                <br>当前页:<input name="page" value="1" />
                <br>页面大小:<input name="page_size" value="20" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="22">22. <a href="#">交易中心信息 [angl]</a></h3>
            <form action="/Trade/index" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="130">
                <br> <input type="submit" name="submit" value="submit">
            </form>
        </section>
        <section>
            <h3 id="23">23. <a href="#">买到的拍单列表 [angl]</a></h3>
            <form action="/Trade/bought_list_v120" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="218">
                <br>列表类型:<input name="type" value="" />（1:待确认、2:成交待回车、3:待验车、4:待付款、5:待过户、6:交易成功、7:交易失败）
                <br> <input type="submit" name="submit" value="submit">
            </form>
        </section>
        <section>
            <h3 id="24">24. <a href="#">交易拍单 [angl]</a></h3>
            <form action="/Trade/order_detail_v120" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="130">
                <br>拍单ID: <input type="text" name="order_id" value="520">
                <br> <input type="submit" name="submit" value="submit">
            </form>
        </section>
        <section>
            <h3 id="25">25,<a href="#">我出价的拍单列表(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Trade/bid_price_list" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>当前页:<input name="page" value="1" />
                <br>页面大小:<input name="page_size" value="20" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="26">26,<a href="#">使用代金券(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Asset/use_coupon" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>拍单ID:<input name="order_id" value="" />
                <br>代金券ID: <?php
                $res = M('dealer_coupon')->where("dealer_id='" . self::DEALER_ID . "' and use_status=0  and end_date>='" . date('Y-m-d') . "'")->select();
                foreach ($res as $val) {
                    echo '<input type="checkbox" name="coupon_ids[]" value="' . $val['coupon_id'] . '" />' . $val['coupon_no'] . ' ';
                }
                ?><br>
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="27">27、<a href="#">车商基本信息[Xmh]</a></h3>
            <form action="/Dealer/dealer_base" method="post" target="_blank">
                车商ID:<input type="text" name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3 id="28">28、<a href="#">修改车商基本信息[Xmh]</a></h3>
            <form action="/Dealer/edit_dealer_base" enctype="multipart/form-data" method="post" target="_blank">
                车商ID:
                <input type="text" name="dealer_id" value="" /><br>
                头像：<input type="file" name="avatar" value="" /><br>
                所在城市：<select name='area'>
                    <option value='110000'>北京</option>
                    <option value='310000'>上海</option>
                    <option value='120000'>天津</option>
                    <option value='500000'>重庆</option>
                    <option value='130100'>石家庄</option>
                </select>
                <br>
                通讯地址：<input type="text" name="address" value="" /><br>
                邮编：<input type="text" name="postcode" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3 id="29">29、<a href="#">修改密码[Xmh]</a></h3>
            <form action="/Dealer/update_pwd" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="" /><br>
                原密码：<input type="text" name="password" value="" /><br>
                新密码：<input type="text" name="new_password" value="" /><br>
                确认新密码：<input type="text" name="new_password_confirm" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section>
            <h3 id="30">30、<a href="#">提车人列表[Xmh]</a></h3>
            <form action="/Dealer/get_take_man_list" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3><a href="#">提车人信息[Xmh]</a></h3>
            <form action="/Dealer/get_take_man" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="" /><br>
                提车人ID: <input type="text" name="man_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3 id="31">31、<a href="#">新增提车人[Xmh]</a></h3>
            <form action="/Dealer/add_take_man" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="" /><br>
                姓名: <input type="text" name="real_name" value="" /><br>
                性别: <select name='sex'>
                    <option value=''></option>
                    <option value='1'>男</option>
                    <option value='2'>女</option>
                </select><br>
                手机号: <input type="text" name="mobile" value="" /><br>
                身份证号: <input type="text" name="idcard" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3><a href="#">修改提车人[Xmh]</a></h3>
            <form action="/Dealer/edit_take_man" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="" /><br>
                提车人ID: <input type="text" name="man_id" value="" /><br>
                姓名: <input type="text" name="real_name" value="" /><br>
                性别: <select name='sex'>
                    <option value='1'>男</option>
                    <option value='2'>女</option>
                </select><br>
                手机号: <input type="text" name="mobile" value="" /><br>
                身份证号: <input type="text" name="idcard" value="" /><br>
                状态: <select name='status'>
                    <option value='1'>启用</option>
                    <option value='2'>禁用</option>
                </select><br>
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3 id="32">32、<a href="#">修改提车人[Xmh]</a></h3>
            <form action="/Dealer/del_take_man" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="" />
                提车人ID: <input type="text" name="man_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3 id="33">33、<a href="#">投诉建议列表[Xmh]</a></h3>
            <form action="/Feedback/index" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3 id="34">34、<a href="#">新增投诉建议[Xmh]</a></h3>
            <form action="/Feedback/add_feedback" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="" /><br>
                类别：
                <select name="type">
                    <option value="1">投诉</option>
                    <option value="2">建议</option>
                </select><br>
                <textarea name="desc"></textarea>
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section >
            <h3 id="35">35、<a href="#">客户经理详情[Xmh]</a></h3>
            <form action="/Dealer/get_dealer_manager" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>
        <section>
            <h3 id="36">36. <a href="#">消息中心列表 [angl]</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Inbox/get_list" method="post" target="_blank"  >
                <br>用户ID:<input name="uid" value="198" />
                <br>是否已读:<input type="radio" name="is_read" value="0" />未读<input type="radio" name="is_read" value="1" />已读
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="37">37,<a href="#">软件更新(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Upgrade/index_v140" method="post" target="_blank"  >
                <br>应用类型:<input name="sort" value="2" />
                <br>应用设备:<input name="driver" value="1" />
                <br>版本号:<input name="version" value="1.4.0" />
                <br>设备:<input name="platform" value="ios" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="38">38,<a href="#">投标出价(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Order/save_bid" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>拍单ID:<input name="order_id" value="" />
                <br>出价:<input name="price" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="40">40. <a href="#">根据筛选条件获取拍单列表个数 [Eric]</a></h3>
            <form action="/Auction/order_stat" method="post" target="_blank"  >
                车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>当前页码:<input name="page" value="1" />
                <br>页面大小:<input name="page_size" value="20" />
                <br>主品牌ID:<input name="mbrand_id" value="" />
                <br>车系ID:<input name="series_id" value="" />
                <br>排放标准:<br><?php
                foreach (C('INT_EMISSION_STD') as $k => $v) {
                    echo '<input type="checkbox" name="emission[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>推荐价格区间:<br><?php
                foreach (C('APP_PRICE_RANGE') as $k => $v) {
                    echo '<input type="checkbox" name="prices_interval[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>自定义最低价:<input name="custom_low_price" value="" />
                <br>自定义最高价:<input name="custom_high_price" value="" />
                <br>年限:<br><?php
                foreach (C('APP_AGE_RANGE') as $k => $v) {
                    echo '<input type="checkbox" name="year_interval[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>车况等级:
                <br><input type="checkbox" name="condition_level[]" value="-1" />全部
                <br><?php
                foreach (C('APP_CAR_LEVEL') as $key => $val) {
                    if ($key == '-1')
                        continue;
                    foreach (C('APP_COM_STATE') as $k => $v) {
                        if ($k == '-1')
                            continue;
                        echo '<input type="checkbox" name="condition_level[]" value="' . $k . $key . '" />' . $v . $val;
                    }
                    echo '<br>';
                }
                ?>（多选）
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <hr>

        <section>
            <h3 id="41">41. <a href="#">根据筛选条件获取车价列表个数 [angl]</a></h3>
            <form action="/Hisprice/get_count" method="post" target="_blank"  >
                车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>当前页码:<input name="page" value="1" />
                <br>页面大小:<input name="page_size" value="20" />
                <br>主品牌ID:<input name="mbrand_id" value="" />
                <br>车系ID:<input name="series_id" value="" />
                <br>排放标准:<br><?php
                foreach (C('INT_EMISSION_STD') as $k => $v) {
                    echo '<input type="checkbox" name="emission[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>推荐价格区间:<br><?php
                foreach (C('APP_PRICE_RANGE') as $k => $v) {
                    echo '<input type="checkbox" name="prices_interval[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>自定义最低价:<input name="custom_low_price" value="" />
                <br>自定义最高价:<input name="custom_high_price" value="" />
                <br>年限:<br><?php
                foreach (C('APP_AGE_RANGE') as $k => $v) {
                    echo '<input type="checkbox" name="year_interval[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>车况等级:
                <br><input type="checkbox" name="condition_level[]" value="-1" />全部
                <br><?php
                foreach (C('APP_CAR_LEVEL') as $key => $val) {
                    if ($key == '-1')
                        continue;
                    foreach (C('APP_COM_STATE') as $k => $v) {
                        if ($k == '-1')
                            continue;
                        echo '<input type="checkbox" name="condition_level[]" value="' . $k . $key . '" />' . $v . $val;
                    }
                    echo '<br>';
                }
                ?>（多选）
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <hr>
        <section>
            <h3><a href="#">h5,投标、等待竞标、竞标、成效待确认、流拍(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Order/detail" method="get" target="_blank"  >
                <br>用户ID:<input name="uid" type="text" value="10004"><br/>
                <br>UUID:<input name="uuid" type="text" value="359712060607147"><br/>
                <br>time:<input name="time" type="text" value="<?=$now?>"><br/>
                <br>access_key:<input name="access_key" type="text" value="<?=$access_key?>"> sha1(uid+uuid+md5(token)+time+clcw.com.cn) ,token取自登录接口<br/>

                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>拍单ID:<input name="order_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3><a href="#">h5,外观与骨架修复历史(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Report/repair_history" method="get" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>车源ID:<input name="car_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3><a href="#">h5,可见损伤点图(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Report/dm_point_class" method="get" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <br>车源ID:<input name="car_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3><a href="#">h5,商户必读(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Consumer/mustread" method="get" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3><a href="#">h5,仲裁规则(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Consumer/arbitration_rules" method="get" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3><a href="#">h5,保证金规则(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Consumer/bail_rules" method="get" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3><a href="#">h5,车况等级规则(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Consumer/level_rules" method="get" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3><a href="#">h5,关于我们(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/about/about" method="get" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="<?= self::DEALER_ID ?>" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>


        <section>
            <h3><a href="#">拍单个数(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Auction/get_list" method="get" target="_blank"  >
                <br>车商ID:<input name="order_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>


        <section>
            <h3 id="42">42、<a href="#">投标、待竞拍、竞拍、待确认（原生展示）(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Order/detail_native_v130" method="get" target="_blank"  >
                <br>拍单ID:<input name="order_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3 id="43">43、<a href="#">成交待回车列表(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Trade/return_list" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>


        <section>
            <h3 id="44">44、<a href="#">待验车列表(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Trade/wait_check_list" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3 id="45">45、<a href="#">仲裁列表（待仲裁，已仲裁）(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Trade/arbitrate_list" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="" />
                <br>类型:<input name="type" value="1" /> (1待仲裁 2已仲裁)
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3 id="46">46、<a href="#">待验车详情、成交待回车详情(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Trade/order_detail_v100" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="" />
                <br>拍单ID:<input name="order_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3 id="48">48、<a href="#">仲裁详情（待仲裁，已仲裁）(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Trade/arbitrate_detail" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="218" />
                <br>拍单ID:<input name="order_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <br/>
        <section>
            <h3 id="49">49. <a href="#">保证金使用记录V100 [Eric]</a></h3>
            <form action="/Asset/history_bail_v100" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="218">
                <br>页码: <input type="text" name="page" value="1">
                <br>页面大小: <input type="text" name="page_size" value="20">
                <br> <input type="submit" name="submit" value="submit">
            </form>
        </section>
        <br/>
        <section>
            <h3 id="50">50、<a href="#">车辆报告（完整，统接口）(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Report/report" method="get" target="_blank"  >
                <br>车源ID:<input name="car_id" value="" />
                <input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="51">51、<a href="#">车商抽奖(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Raffle/get_face_value" method="get" target="_blank"  >
                <br>拍单ID:<input name="order_id" value="" />
                <br>活动类型:<input name="type" value="" />
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="52">52、<a href="#">获取碎片(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/System/get_chip" method="post" target="_blank"  >
                JSON参数:<textarea name="params" cols="50" rows="10" /></textarea>
                <input type="submit" name="submit" value="submit" /><br>
                <br>[{"name":"little_knowledge","modify_time":"1461636831"},{"name":"https_certificate","modify_time":"1461636832"}]
            </form>
        </section>

        <section>
            <h3 id="53">53、<a href="#">资产中心v130(author:lc)</a></h3>
            <form action="/Asset/center_v130" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="<?= self::DEALER_ID ?>" /><br>
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section>
            <h3 id="54">54、<a href="#">贷款历史v130(author:lc)</a></h3>
            <form action="/Asset/loan_history" method="post" target="_blank">
                车商ID: <input type="text" name="dealer_id" value="<?= self::DEALER_ID ?>" /><br>
                <br>当前页码:<input name="page" value="1" />
                <br>页面大小:<input name="page_size" value="20" />
                <br>拍单编号:<input name="order_no" value="" />
                <br>贷款编号: <input name='xm_list_code' value="">
                <br>状态:<input name="state" value="">(0:全部,1:已申请,2:已放款,3:已逾期,4:已结清,5:失败)
                <input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section>
            <h3 id="55">55、<a href="#">贷款历史详情页v130(author:lc)</a></h3>
            <form action="/Asset/loan_detail" method="post" target="_blank">
                贷款编号: <input name='loanSN' value="">
                <br><input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section>
            <h3 id="56">56、<a href="#">支付方式(author:lc)</a></h3>
            <form action="/Trade/pay_mode" method="post" target="_blank">
                拍单ID: <input name='order_id' value="">
                <br>车商ID: <input name='dealer_id' value="<?= self::DEALER_ID ?>">
                <br><input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section>
            <h3 id="57">57、<a href="#">贷款支付(author:lc)</a></h3>
            <form action="/Trade/loan_pay" method="post" target="_blank">
                拍单ID: <input name='order_id' value="">
                <br>车商ID: <input name='dealer_id' value="<?= self::DEALER_ID ?>">
                <br><input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section>
            <h3 id="58">58、<a href="#">完成结算(author:lc)</a></h3>
            <form action="/Trade/complete_balance" method="post" target="_blank">
                拍单ID: <input name='order_id' value="">
                <br><input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section>
            <h3 id="59">59、<a href="#">车辆结算v130(author:lc)</a></h3>
            <form action="/Trade/car_statement_v120" method="post" target="_blank">
                拍单ID: <input name='order_id' value="">
                <br>车商ID: <input name='dealer_id' value="<?= self::DEALER_ID ?>">
                <br><input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section>
            <h3 id="60">60、<a href="#">首付款确认(author:lc)</a></h3>
            <form action="/Trade/first_pay_confirm" method="post" target="_blank">
                贷款编号: <input name='xm_list_code' value="">
                <br>拍单ID: <input name='order_id' value="">
                <br><input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section>
            <h3 id="61">61、<a href="#">申请支付(author:lc)</a></h3>
            <form action="/Trade/apply_loan" method="post" target="_blank">
                拍单ID: <input name='order_id' value="">
                <br>贷款金额: <input name='loan_money' value="20000">
                <br>贷款期限: <input name='loan_period' value="30">
                <br>应付总款: <input name='should_pay' value="50000">
                <br><input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section>
            <h3 id="63">63、<a href="#">收款确认(author:lc)</a></h3>
            <form action="/Trade/pay_confirm" method="post" target="_blank">
                贷款编号: <input name='xm_list_code' value="">
                <br>拍单ID: <input name='order_id' value="">
                <br><input type="submit" name="submit" value="submit"/>
            </form>
        </section>

        <section>
            <h3 id="64">64、<a href="#">订阅首页参数测试(nzx)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Subscribe/index" method="post" target="_blank"  >
                <br>车商dealer_id:<input name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <section>
            <h3 id="65">65、<a href="#">订阅删除测试(nzx)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Subscribe/delete" method="post" target="_blank"  >
                <br>订阅id sid:<input name="sid" value="" />
                <input name="dealer_id" value="206" type="hidden"/>
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <section>
            <h3 id="66">66、<a href="#">订阅列表页参数测试(Xmh)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Subscribe/order_list" method="post" target="_blank"  >
                <br>订阅sid:<input name="sid" value="1" /><input type="hidden" name="dealer_id" value="206">
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <section>
            <h3 id="67">67. <a href="#">添加订阅器测试</a></h3>
            <form action="/Subscribe/add" method="post" target="_blank"  >
                订阅名称:<input name="sub_name" value="">
                车商ID:<input name="dealer_id" value="206" />
                <!-- <br>当前页码:<input name="page" value="1" />-->
                <!--<br>页面大小:<input name="page_size" value="20" />-->
                <br>主品牌ID:<input name="brand_id" value="" />
                <br>车系ID:<input name="series_id" value="" />
                <br>注册地:<input name="reg_city" value="" />
                <br><br>所在地:<br><?php
                foreach (C('INT_LOCATION_AREA') as $k => $v) {
                    echo '<input type="checkbox" name="location_area[]" value="' . $k . '" />' . $v;
                }
                ?>(多选)
                <br>排放标准:<br><?php
                foreach (C('INT_EMISSION_STD') as $k => $v) {
                    echo '<input type="checkbox" name="emission[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br>年限:<br><?php
                foreach (C('APP_AGE_RANGE') as $k => $v) {
                    echo '<input type="checkbox" name="year[]" value="' . $k . '" />' . $v;
                }
                ?>（多选）
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <hr>
        <section>
            <h3 id="68">68、<a href="#">订阅详情参数测试(nzx)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Subscribe/order_list" method="post" target="_blank"  >
                <br>订阅sid:<input name="sid" value="" /><input type="hidden" name="dealer_id" value="206">
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <hr>
        <section>
            <h3 id="88">88、<a href="#">维保报告分享(Xmh)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Share/repair_share" method="post" target="_blank"  >
                <br>RID:<input name="rid" value="" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <hr>
        <section>
            <h3 id="89">89、<a href="#">强制修改密码(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dealer/change_pwd_force" method="post" target="_blank"  >
                <br>拍单ID:<input name="order_id" value="" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <hr>
        <section>
            <h3 id="90">90、<a href="#">发送验证码(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dealer/send_auth_code" method="post" target="_blank"  >
                <br>拍单ID:<input name="order_id" value="" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <section>
            <h3 id="95">95、<a href="#">智能报价列表页(智)显示</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dealer/get_dealer_identity" method="post" target="_blank"  >
                <br>拍单ID:<input name="order_id" value="" />
                <br>车商ID:<input name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <section>
            <h3 id="96">96、<a href="#">智能报价列表(我的)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dealer/get_auto_price" method="post" target="_blank"  >
                <br>拍单NO:<input name="order_no" value="" />
                <br>车商ID:<input name="dealer_id" value="" />
                <input type="hidden" name="type" value="-1" />
                <!--<input type="hidden" name="start_time" value="2016-11-24" />-->
                <input type="hidden" name="end_time" value="2016-11-26" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>

        <section>
            <h3 id="97">97、<a href="#">是否可以发送邀请帮砍</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dealer/is_cutdown" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <section>
            <h3 id="90">90、<a href="#">车商签约认证(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Auth/auth_sign" method="post" target="_blank"  >
                <br>认证类型:<input name="auth_type" value="" /> 1个人 2企业
                <br>姓名:<input name="name" value="" />
                <br>身份证号:<input name="idcard" value="" />
                <br>身份证正面照:<input name="idcard_front_pic" value="" size="50" />
                <br>身份证背面照:<input name="idcard_back_pic" value=""  size="50"/>
                <br>身份证手持照:<input name="idcard_hold_pic" value=""  size="50"/>
                <br>手机:<input name="mobile" value="" />
                <br>是否三证合一:<input name="is_three_in_one" value="" /> 1 是 0否
                <br>公司名称:<input name="company_name" value="" />
                <br>营业执照号:<input name="business_license_num" value="" />
                <br>组织机构代码:<input name="organization_code" value="" />
                <br>税务登记证号:<input name="tax_reg_cert_no" value="" />
                <br>营业执照照片:<input name="business_license_pic" value="" />
                <br>组织机构代码证照片:<input name="organization_code_pic" value="" />
                <br>税务登记证照片:<input name="tax_reg_cert_pic" value="" />
                <br>授权委托书照片:<input name="auth_letter_pic" value="" />
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="90">90、<a href="#">我已阅读并同意签约协议(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Auth/protocol" method="post" target="_blank"  >
                <br>同意与否:<input name="agree" value="1" />(1同意）
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <section>
            <h3 id="91">91、<a href="#">(Xmh)争议详情</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dispute/dispute_detail" method="post" target="_blank"  >
                <br>DID:<input name="did" value="" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <hr>
        <section>
            <h3 id="92">92、<a href="#">(Xmh)异常详情</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dispute/modify_detail" method="post" target="_blank"  >
                <br>MID:<input name="mid" value="" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <hr>
        <section>
            <h3 id="93">93、<a href="#">(Xmh)异常列表</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dispute/modify_list" method="post" target="_blank"  >
                <br>dealer_id:<input name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <hr>
        <section>
            <h3 id="94">94、<a href="#">(Xmh)争议列表</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dispute/dispute_list" method="post" target="_blank"  >
                <br>dealer_id:<input name="dealer_id" value="" />
                <input type="submit" name="submit" value="submit" /><br>
            </form>
        </section>
        <hr>

        <section>
            <h3 id="92">92、<a href="#">停止智能出价(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dealer/set_auto_bid" method="post" target="_blank"  >
                <br>拍单ID:<input name="order_id" value="" />
                <br>车商ID:<input name="dealer_id" value="" />
                <input type="hidden" name="type" value="0">
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3 id="92">92、<a href="#">测试(Eric)</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Dealer/test" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="256" />
                <br>拍单ID:<input name="order_id" value="2244" />
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3 id="100">100、<a href="#">生成支付订单</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Recharge/recharge" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="256" />
                <br>拍单ID:<input name="amount" value="1" />
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>

        <section>
            <h3 id="101">101、<a href="#">蚁巢支付回调</a></h3>
            <form action="http://<?= $_SERVER['HTTP_HOST'] ?>/Recharge/public_check_alipay" method="post" target="_blank"  >
                <br>车商ID:<input name="dealer_id" value="242" />
                <br>拍单ID:<input name="order_sn" value="DA2017041711594286242" />
                <br>订单金额:<input name="order_amount" value="0.01" />
                <br>支付流水号:<input name="pay_sn" value="2017041721001004180207267405" />
                <br>支付渠道:<input name="pay_code" value="ALIPAY" />
                <br>支付状态:<input name="pay_status" value="TRADE_SUCCESS" />
                <br>订单处理时间:<input name="pay_time" value="1492401590" />
                <br>回调次数:<input name="process_times" value="1" />
                <br><input type="submit" name="submit" value="submit" />
            </form>
        </section>
        <br/>
        <br/>
        <br/>
        <br/>
    <?php
    }

    /**
     * 保留2位小数（第三位小数大于0即进位)
     * @param $n
     */
    public function test2($n=0){
//            $n = 23200;//2.32
//            $n = 23210;//2.33
//            $n = 23250;//2.33
        $a = explode('.',$n/10000);
        $m=substr(str_pad($a[1],3,0),-1);
        if($m>0){
            $prefix=strstr($n/10000,'.',true);
            $suffix=substr(str_replace('.','',strstr($n/10000,'.')),0,2)/100+0.01;
            echo floatval($prefix+$suffix);
        }else{
            echo $n/10000;
        }

        exit;
    }
}
?>
